//
//  TYScrollFlowLayout.m
//  爱鲜蜂
//
//  Created by 李田 on 16/11/19.
//  Copyright © 2016年 tianyao. All rights reserved.
//

#import "LBScrollFlowLayout.h"

@implementation LBScrollFlowLayout


- (void)prepareLayout{
    
    [super prepareLayout];
    
    //    MARK:设置 行 item之间的间距
    self.minimumInteritemSpacing = 1 / [UIScreen mainScreen].scale;
    self.minimumLineSpacing = 1 / [UIScreen mainScreen].scale;
    //    MARK: 滚动的方向
    self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    
    //    MARK: 设置item的大小
    CGFloat width = (self.collectionView.bounds.size.width - 3) / 7 * 2;
    CGFloat height = 140;
    
    self.itemSize = CGSizeMake(width, height);
}
@end
